package com.cloud.custom.api.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.custom.api.bean.CustomFormBean;
import com.cloud.custom.api.service.CustomBizService;
import com.cloud.custom.common.result.Quokka;

@RestController
@RequestMapping("custom/api/biz")
public class CustomBizController {

	@Autowired
	private CustomBizService customService;

	@RequestMapping("saveupdate")
	public Quokka saveUpdateCustomBiz(@RequestBody CustomFormBean value) {
		return new Quokka(true, customService.saveUpdateCustomBiz(value));
	}

}
